﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Pages_CallRouting" Codebehind="CallRouting.aspx.cs" MasterPageFile="~/Pages/Master/MainAdmin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <fieldset id="pageLoad">
        <div id="fillInData">
           <h1>Encaminhamento de Chamados</h1>

           <div class="fillInDataField">
                <div class="label">
                    <label for="lblUserOpen" style="font-weight: bold">Solicitante</label>
                </div>
                <asp:Label ID="lblUserOpen" runat="server" Text="Label" 
                    CssClass="component medium"></asp:Label>
           </div>

           <div class="fillInDataField">
                <div class="label">
                    <label for="lblEMailOpen">E-mail</label>
                </div>
                <asp:Label ID="lblEMailOpen" runat="server" Text="Label" 
                    CssClass="component medium"></asp:Label>
           </div>

           <div class="fillInDataField">
                <div class="label">
                    <label for="lblUnit" style="font-weight: bold">Unidade</label>
                </div>
                <asp:Label ID="lblUnit" runat="server" Text="label" CssClass="component small"></asp:Label>
            </div>

            <div class="fillInDataField">
                <div class="label">
                    <label for="lblSector" style="font-weight: bold">Setor</label>
                </div>
                <asp:Label ID="lblSector" runat="server" Text="Label" 
                    CssClass="component small"></asp:Label>
            </div>

            <div class="fillInDataField">
                <div class="label">
                    <label for="lblOpen" style="font-weight: bold">Data de Abertura</label>
                </div>
                <asp:Label ID="lblOpen" runat="server" Text="99/99/9999" 
                    CssClass="component small"></asp:Label>
            </div>

            <div class="fillInDataField">
                <div class="label">
                    <label for="ltbAnnex" style="font-weight: bold">Anexos</label>
                </div>
                <asp:ListBox ID="ltbAnnex" runat="server" 
                    onselectedindexchanged="ltbAnnex_SelectedIndexChanged" AutoPostBack="True" 
                    Rows="1" CssClass="component small"></asp:ListBox>
            </div>

            <div class="fillInDataField">
                <div class="label">
                    <label for="txbProblem" style="font-weight: bold">Problema</label>
                </div>
                <asp:TextBox ID="txbProblem" runat="server" Enabled="False" Height="70px" 
                    TextMode="MultiLine" Width="326px" CssClass="component huge"></asp:TextBox>
            </div>

            <div class="fillInDataField">
                <div class="label">
                    <label for="txbSolution" style="font-weight: bold">Solução</label>
                </div>
                <asp:TextBox ID="txbSolution" runat="server" Enabled="False" Height="70px" 
                    TextMode="MultiLine" Width="326px" CssClass="component huge"></asp:TextBox>
            </div>

            <div class="fillInDataField">
                <div class="label">

                </div>
                <asp:RadioButtonList ID="rblCallStatus" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="rblCallStatus_SelectedIndexChanged" 
                    CssClass="component medium">
                    <asp:ListItem>Encaminhar</asp:ListItem>
                    <asp:ListItem>Fechar</asp:ListItem>
                </asp:RadioButtonList>
            </div>

            <div class="fillInDataField">
                <div class="label">
                    <label for="ddlTechnicalUsers" style="font-weight: bold">Técnico</label>
                </div>
               <asp:DropDownList ID="ddlTechnicalUsers" runat="server" 
                    DataSourceID="odsUserTechinical" DataTextField="Name" DataValueField="Id" 
                    CssClass="component medium" >
               </asp:DropDownList>
               <asp:ObjectDataSource ID="odsUserTechinical" runat="server" 
                    SelectMethod="GetUsersByRole" 
                    TypeName="br.com.SistemaChamados.Controller.Common.UserController">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="TECHNICAL" Name="role" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </div>

            <div class="fillInDataField">
                <div class="label">
                    <asp:Label ID="lbljustification" runat="server" Text="Justificativa" style="font-weight: bold"></asp:Label>
                </div>
                <asp:TextBox ID="txbjustification" runat="server" Height="70px" 
                    TextMode="MultiLine" Visible="False" Width="330px" 
                    CssClass="component huge"></asp:TextBox>
            </div>
            <asp:Button ID="btnCallRouting" runat="server" onclick="btnCallRouting_Click" 
                Text="Salvar" CssClass="button open" />
        </div>
        </fieldset>
</asp:Content>

